package top.chenyaohua.serviceImp;


import top.chenyaohua.annotion.Component;
import top.chenyaohua.annotion.Inject;
import top.chenyaohua.beans.User;
import top.chenyaohua.service.UserDao;

@Component
public class UserServiceImp  {

    @Inject
    private UserDao userDao;

    public User login (String name, String password) {
        return  userDao.findAll(name);
    }
}
